package com.xiaoyu.ftp;

import java.io.File;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.apache.commons.net.ftp.FTPClient;

public abstract interface FTPUtil {
	public abstract boolean isExists(String paramString);

	public abstract boolean downLoad(String paramString);

	public abstract boolean downLoadDir(String paramString);

	public abstract boolean deleteFile(String paramString);

	public abstract boolean deleteDir(String paramString);

	public abstract boolean putFile(String paramString1, String paramString2,
			boolean paramBoolean);

	public abstract boolean putFile(File paramFile, String paramString,
			boolean paramBoolean);

	public abstract boolean putDir(String paramString1, String paramString2);

	public abstract boolean putDir(File paramFile, String paramString);

	public abstract boolean mkDir(String paramString);

	public abstract List<String> listFile(String paramString);

	public abstract LinkedList<String> listDir(String paramString);

	public abstract Map<String, FileAttr> listFileAttr(String paramString);

	public abstract boolean changeWorkDir(String paramString);

	public abstract String getWorkDir();

	public abstract boolean changName(String paramString1, String paramString2);

	public abstract FTPClient client();

	public abstract void destory();
}